TEMPLATE = app
QT += serialport 
QT += core
QT += sql
QT += widgets
QT += printsupport

HEADERS = src/dlgabout.h \
    src/delegate.h \
    src/MyTpThread.h \
    src/ApplicationWindow.h \
    src/Madlglogon.h \
    src/dbdata.h \
    src/dblDele.h \
    src/editablesqlmodel.h \
    src/muser.h \
    src/mymethod.h \
    src/dlgstandards.h \
    src/cmysig.h \
    src/mytableview.h \
    src/dlgcard.h \
    src/DlgSetup.h \
    src/chanelvolt.h \
    src/trackdelegate.h \
    src/vstatus.h \
    src/hstatus.h \
    src/dlgtp.h \
    src/mytp.h \
    src/dlgmethod.h \
    src/mcsy.h \
    src/ccard.h \
    src/utils.h \
    src/dlgtableedit.h \
    src/DlgOpenSample.h \
    src/printview.h \
    src/Mylog.h \
    src/MyThread.h \
    src/cmysig2.h \
    src/mcsythread.h \
    src/mcsytimer.h \
    src/vstatuscolor.h \
    src/channelad.h \
    src/widgetdelegate.h
SOURCES = src/dlgabout.cpp \
    src/ApplicationWindow.cpp \
    src/MyTpThread.cpp \
    src/delegate.cpp \
    src/card9111.cpp \
    src/dblDele.cpp \
    src/editablesqlmodel.cpp \
    src/main.cpp \
    src/Madlglogon.cpp \
    src/dbdata.cpp \
    src/muser.cpp \
    src/mymethod.cpp \
    src/dlgstandards.cpp \
    src/cmysig.cpp \
    src/mytableview.cpp \
    src/dlgcard.cpp \
    src/DlgSetup.cpp \
    src/hstatus.cpp \
    src/chanelvolt.cpp \
    src/trackdelegate.cpp \
    src/vstatus.cpp \
    src/dlgtp.cpp \
    src/mytp.cpp \
    src/dlgmethod.cpp \
    src/mcsy.cpp \
    src/ccard.cpp \
    src/Utils.cpp \
    src/dlgtableedit.cpp \
    src/DlgOpenSample.cpp \
    src/printview.cpp \
    src/Mylog.cpp \
    src/MyThread.cpp \
    src/cmysig2.cpp \
    src/mcsythread.cpp \
    src/mcsytimer.cpp \
    src/vstatuscolor.cpp \
    src/channelad.cpp \
    src/widgetdelegate.cpp
FORMS = src/dlglogon.ui \
    src/ApplicationWindow.ui \
    src/dlgSerial.ui \
    src/dlgabout.ui \
    src/ApplicationWindow.ui \
    src/dlgStandards.ui \
    src/DlgCard.ui \
    src/DlgSetup.ui \
    src/dlgtp.ui \
    src/DlgMethod.ui \
    src/dlgTableEdit.ui \
    src/dlgOpenSample.ui
# LIBS += -lwinmm
DESTDIR =./release
RESOURCES += res1.qrc

#QWT_ROOT = /usr/local/qwt-6.2.0-dev
INCLUDEPATH += \
            ./src \
            /usr/include/qwt


#DEPENDPATH += $${QWT_ROOT}/include
#LIBS += -L$${QWT_ROOT}/lib
CONFIG(Debug):LIBS += -lqwt
else:LIBS += -lqwt-qt5
QMAKE_LFLAGS += -no-pie
# QES_ROOT = ../qextserialport-1.2win-alpha
# INCLUDEPATH += $${QES_ROOT}
# LIBS += -L$${QES_ROOT}/build
# CONFIG(Debug):LIBS += -lqextserialportd
# else:LIBS += -lqextserialport

# INCLUDEPATH += j:\Python25\include
# LIBS += j:\Python25\libs\libpython25.a
# INCLUDEPATH += ./scripting
#win32:RC_FILE = winapp.rc
